package com.wmh.baseservice.robot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 青石
 * @TableName robot_task_template
 */
@TableName(value = "robot_task_template")
@Accessors(chain = true)
@Data
public class RobotTaskTemplate implements Serializable {

    /**
     *
     */
    @TableId(value = "id",type = IdType.AUTO)
    private String id;


    /**
     * 模板名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 任务配置快照( JSON 数组)
     * [{
     * 任务id,
     * 任务名称,
     * 参数配置
     * }...]
     */
    @TableField(value = "task_config_snapshot")
    private String taskConfigSnapshot;

    /**
     * 管理员ID
     */
    @TableField(value = "ad_id")
    private String adId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;


    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String TASK_CONFIG_SNAPSHOT = "task_config_snapshot";
    public static final String AD_ID = "ad_id";
    public static final String CREATE_TIME = "create_time";
    public static final String UPDATE_TIME = "update_time";

    private static final long serialVersionUID = 1L;
}
